package chen.yi.mapper.dto.login;

import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

/**
 * 登录入参
 * @author huat
 **/
@Setter
@Getter
@ToString
public class LoginDTO {
    /**
     * 用户名
     */
    @NotBlank(message = "用户名不允许为空")
    @Length(max = 30,message = "请输入30位以内的用户名")
    private String username;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @Length(min = 6, max = 30,message = "请输入6-30位的密码")
    private String password;
    /**
     * 验证码标识
     */
    @NotBlank(message = "验证码标识不能为空")
    private String uuid;
    /**
     * 验证码
     */
    @NotBlank(message = "验证码不允许为空")
    @Length(max = 4,message = "请输入合法验证码")
    private String code;
}
